package com.carl.zlds.tool.common;

public class PageBO {
    public static final int PAGE_LIMIT = 10;
    private Integer page = 1;
    private Integer limit = 10;

    PageBO() {
    }

    public Integer getPage() {
        return this.page;
    }

    public Integer getLimit() {
        return this.limit;
    }

    public void setPage(Integer page) {
        this.page = page < 1 ? 1 : page;
    }

    public void setLimit(Integer limit) {
        this.limit = limit != null ? limit : 10;
    }
}
